package com.klod.news.config

import androidx.navigation3.runtime.NavKey
import kotlinx.serialization.Serializable

object RouteConfig {

    const val ROUTE_HOME = "/home"
    const val ROUTE_RECOMMEND = "/recommend"
    const val ROUTE_PUBLISH = "/publish"
    const val ROUTE_MESSAGE = "/message"
    const val ROUTE_USER = "/user"
}

@Serializable
data object RouteMain : NavKey
@Serializable
data object RouteRecommend : NavKey
@Serializable
data object RoutePublish : NavKey
@Serializable
data object RouteMessage : NavKey
@Serializable
data object RouteUser : NavKey

@Serializable
data object RouteError : NavKey